/*
* Copyright (c) Huawei Technologies Co., Ltd. 2017-2019. All rights reserved.
* Description: demuser for mp4
* Author: HiMobileCam middleware develop team
* Create: 2017-12-22
*/

#ifndef MP4_FORMAT_H
#define MP4_FORMAT_H

#include "ffdemux_common.h"

#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* End of #ifdef __cplusplus */

HI_S32 Mp4AvbsfInit(AVBSFContext **outBsfCtx, const AVStream *stream, const HI_CHAR *bsfName);

HI_VOID Mp4AvbsfDeinit(AVBSFContext **bsfCtx);

HI_S32 Mp4SetAudioInfo(FfDemuxFormatMember *formatMember, HI_FORMAT_PACKET_S *fmtFrame);

HI_S32 Mp4SetVideoInfo(FfDemuxFormatMember *formatMember, HI_FORMAT_PACKET_S *fmtFrame);

HI_S32 Mp4ProbeMeta(FfDemuxFormatMember *formatMember);

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

#endif /* MP4_FORMAT_H */
